import fetch from '@/utils/fetch';

export function serachMatName(data) {
  return fetch({
    url: '/api/dict/search/matName',
    method: 'post',
    data
  });
}

export function requestQuery(data) {
  return fetch({
    url: '/api/pc/query/request',
    method: 'post',
    data
  });
}

export function requestList(data) {
  return fetch({
    url: '/api/pc/query/requestList',
    method: 'post',
    data
  });
}

export function requestHead(data) {
  return fetch({
    url: '/api/pc/query/requestHead',
    method: 'post',
    data
  });
}

export function requesLineList(data) {
  return fetch({
    url: '/api/pc/query/requesLineList',
    method: 'post',
    data
  });
}

export function requesLineInfo(data) {
  return fetch({
    url: '/api/pc/query/requesLine',
    method: 'post',
    data
  });
}

export function deleteRequest(data) {
  return fetch({
    url: '/api/pc/request/delete',
    method: 'post',
    data
  });
}

export function deleteRequestLine(data) {
  return fetch({
    url: '/api/pc/request/deleteLine',
    method: 'post',
    data
  });
}

export function referHisRequest(data) {
  return fetch({
    url: '/api/pc/request/referHis',
    method: 'post',
    data
  });
}

export function modifyRequest(data) {
  return fetch({
    url: '/api/pc/request/modify',
    method: 'post',
    data
  });
}

export function modifyRequestHead(data) {
  return fetch({
    url: '/api/pc/request/modifyHead',
    method: 'post',
    data
  });
}

export function modifyRequestLine(data) {
  return fetch({
    url: '/api/pc/request/modifyLine',
    method: 'post',
    data
  });
}
